package com.java2_28;

public enum MyNnum {
    REDBIRD("xiaohong", "red"),
    YELLOWBIRD("xiaohuang", "yellow"),
    BLUEBIRD("xiaolan", "blue");

    private final String name;
    private final String color;

    private MyNnum(String name, String color) {
        this.name = name;
        this.color = color;
    }

    public String getName() {
        return name;
    }


    public String getColor() {
        return color;
    }

    @Override
    public String toString() {
        return "MyNnum{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
